[PATCH 1/3] dcerpc: add upper limit on stub data
authorShivani Bhardwaj <shivani@oisf.net>
Tue, 6 Jan 2026 11:14:52 +0000 (16:44 +0530)
committerAndreas Dolp <dev@andreas-dolp.de>
Thu, 23 Apr 2026 05:14:21 +0000 (07:14 +0200)
commit5c67359e8d0727c40e3df0a9f79c609690799bae
treeedb7bd89a9bcbf36c9f16872fa24c1d9392f418f
parentd0caa3262acc7af4e83be8d26b2e2b97583afd15
[PATCH 1/3] dcerpc: add upper limit on stub data

DCERPC parsers had no upper bounds when it came to extending the stub
data buffer. Traffic can be crafted to bypass some internal parser
conditions to create an indefinite buffering in the stub_data array that
can make Suricata crash.

Add a default limit of 1MiB and make it configurable for the user.

Security 8182

Co-authored-by: Philippe Antoine <pantoine@oisf.net>
(cherry picked from commit e412215af990feeffbb66c7dd9f392813a20ae50)

Origin: upstream, https://github.com/OISF/suricata/commit/f82a388d0283725cb76782cf64e8341cab370830.patch
Bug: https://redmine.openinfosecfoundation.org/issues/8182
Subject: Upstream fix for CVE-2026-22258 part 1

Gbp-Pq: Name CVE-2026-22258_1.patch
rust/src/dcerpc/dcerpc.rs
rust/src/dcerpc/dcerpc_udp.rs
rust/src/smb/dcerpc.rs
rust/src/smb/smb.rs
suricata.yaml.in